package tp.tecnicasdisenio.model.entity;

public class Materia implements Entity<String> {

  private String nombre;
  private String codigo;

  private String smtp_port;
  private String smtp_host;
  
  private String email;
  private String password;
  private String host;

  public String getNombre() {
    return nombre;
  }

  public void setNombre(String nombre) {
    this.nombre = nombre;
  }

  public String getCodigo() {
    return codigo;
  }

  public void setCodigo(String codigo) {
    this.codigo = codigo;
  }

  @Override
  public String getId() {
    return codigo;
  }

  @Override
  public int hashCode() {
    final int prime = 31;
    int result = 1;
    result = prime * result + ((codigo == null) ? 0 : codigo.hashCode());
    return result;
  }

  @Override
  public boolean equals(Object obj) {
    if (this == obj)
      return true;
    if (obj == null)
      return false;
    if (getClass() != obj.getClass())
      return false;
    Materia other = (Materia) obj;
    if (codigo == null) {
      if (other.codigo != null)
        return false;
    } else if (!codigo.equals(other.codigo))
      return false;
    return true;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }

  /**
   * @return the host
   */
  public String getHost() {
    return host;
  }

  /**
   * @param host the Host to set
   */
  public void setHost(String host) {
    this.host = host;
  }

public String getSmtpPort() {
	return smtp_port;
}

public void setSmtpPort(String smtp_port) {
	this.smtp_port = smtp_port;
}

public String getSmtpHost() {
	return smtp_host;
}

public void setSmtpHost(String smtp_host) {
	this.smtp_host = smtp_host;
}

}
